﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.WindowsAzure.StorageClient;

namespace FeedReader.Shared.Data
{
    public class RssCloudSubsDataModel :TableServiceEntity
    {
        public RssCloudSubsDataModel(string partitionKey, string rowKey)
            : base(partitionKey, rowKey)
        {
        }

        public RssCloudSubsDataModel(): this(Guid.NewGuid().ToString(), String.Empty)
        {
        }
        //these fields are to identify the rsscloud RssCloudSubs. 
        /// <summary>
        ///  The ID of the blog being subscribed to.
        /// </summary>
        public string BlogID { get; set; }
        /// <summary>
        ///  The hash of the blog url and the domain to identify unique subcriptions
        /// </summary>
        public string Hash { get; set; }
        /// <summary>
        ///  The Blog URL
        /// </summary>
        public string URL { get; set; }
        /// <summary>
        ///  The Domain
        /// </summary>
        public string Domain { get; set; }
        /// <summary>
        ///  The Port
        /// </summary>
        public int Port { get; set; }
        /// <summary>
        ///  The path
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        ///  The register procedure - i.e SOAP
        /// </summary>
        public string registerProcedure { get; set; }
        /// <summary>
        ///  The protocol
        /// </summary>
        public string Protocol { get; set; }
        /// <summary>
        ///  The timstamp of the subscription
        /// </summary>
        public DateTime DateTime{get;set;}
    }
}
